package com.lzp.wechat.entity.message;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@Data
@NoArgsConstructor
@XStreamAlias("xml")
@ApiModel(value = "视频消息")
public class VideoMessage extends BaseMessage {

    @XStreamAlias("MediaId")
    @ApiModelProperty(value = "媒体id", notes = "通过素材管理中的接口上传多媒体文件，得到的id")
    private String mediaId;

    @XStreamAlias("Title")
    @ApiModelProperty(value = "视频消息的标题")
    private String title;

    @XStreamAlias("Description")
    @ApiModelProperty(value = "视频消息的描述")
    private String description;

    public VideoMessage(Map<String, String> requestMap, String mediaId, String title, String description) {
        super(requestMap);
        this.setMsgType("video");
        this.mediaId = mediaId;
        this.title = title;
        this.description = description;
    }

}
